package com.ct.rbac.convert;

import com.ct.rbac.model.SysUserModel;
import com.ct.rbac.orm.SysUserDO;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper(componentModel = "spring")
public interface SysUserConvertDOToModel {

    //@Mapping(target = "createTime",expression = "java(com.ct.rbac.convert.DateTransform.DateToString(sysUserDO.getCreateTime()))")
    SysUserModel convert(SysUserDO sysUserDO);

    //@Mapping(target = "createTime",expression = "java(com.ct.rbac.convert.DateTransform.DateToString(sysUserDO.getCreateTime()))")
    List<SysUserModel> convert(List<SysUserDO> sysUserDOs);

}
